package com.gzc.pm.ro;

import java.util.List;

import cn.skyclass.net.OperationResult;

import com.gzc.pm.bean.PckDataBean;
import com.gzc.pm.dao.PckDataDao;

public class PckDataRo {
	
	public List<Object> getListByDate(String startDate, String endDate){
		if(startDate == ""){
			startDate = null;
		}else{
			startDate = startDate.replaceAll("-", "");
		}
		if(endDate == ""){
			endDate = null;
		}else{
			endDate = endDate.replaceAll("-", "");
		}
		PckDataDao dao = new PckDataDao();
		return dao.getListByDate(startDate, endDate);
	}
	
	public boolean insertData(List<PckDataBean> list){
		PckDataDao dao = new PckDataDao();
		OperationResult or = dao.insertData(list);
		return or.isSuccessful();
	}

}
